#pragma once

#include "IModule.h"

class ModuleMgr
{
public:
	ModuleMgr();
	~ModuleMgr();

	void AddModule(const std::string &scenename, IModule *scene);
	void SetActiveModule(const std::string &scenename);

	bool Frame();
private:
	void m_close();
	std::map<std::string, IModule*> m_moduleList;
	IModule *m_currmodule;
	std::string m_currmodulename;
};